package com.e3.basdoc.measure.server;

import com.e3.basdoc.measure.service.MeasureUnitQueryService;
import com.e3.basdoc.measure.service.MeasureUnitService;
import com.e3.core.base.ServiceLocator;

public class MeasureUnitServiceClient {
	
	private static MeasureUnitService measureService;
	
	private static MeasureUnitQueryService measureQueryService;
	
	public static MeasureUnitService getMeasureUnitService(){
		if(measureService == null){
			measureService = ServiceLocator.getService(MeasureUnitService.class);
		}
		return measureService;
	}
	
	public static MeasureUnitQueryService getMeasureUnitQueryService(){
		if(measureQueryService == null){
			measureQueryService = ServiceLocator.getQueryService(MeasureUnitQueryService.class);
		}
		return measureQueryService;
	}

}
